const express = require("express")
const app = express();
const cors = require("cors")
const bodyParser = require("body-parser")
const router = require("./router")

app.use(cors());
app.use(bodyParser.urlencoded({
    extended: true
}))
app.use("/api", router);

app.listen(3000, () => {
    console.log(3000);
})
module.exports = {
    dev: {

        // Paths
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {
            '/api': {
                target: 'http://8.130.171.48:8081', //目标地址
                changeOrigin: true, //支持跨域
            }
        }
    }
}